package com.wsoft.hr.pm.query.template.scope;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author z001
 * @Date 2025/2/24 18:30
 */
@Data
public class TemplateScopeBaseQuery {

    @Schema(description = "考评模板id")
    private Long templateId;

    @Schema(description = "维度名称")
    @NotBlank(message = "维度名称不能为空")
    private String name;

    @Schema(description = "维度id")
    private Long scopeId;

    @Schema(description = "权重")
    @NotNull(message = "权重不能为空")
    private BigDecimal weight;

    @Schema(description = "是否可修改")
    private Integer isEdit;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "排序")
    private Integer sort;
}
